package com.xiaoying.server.publish.utils;

import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogTest2 {
	
	@Test
	public void test_log1(){		
		Log log1 = LogFactory.getFactory().getInstance(LoggerTest.class);
		Logger logger1  =  LoggerFactory.getLogger(LoggerTest.class );
		Date date = new Date();
		log1.info("log info test "+DateUtil.getDateTimeByFormat(date));
		log1.debug("log debug test "+DateUtil.getDateTimeByFormat(date));
		log1.error("log errror test "+DateUtil.getDateTimeByFormat(date));
		logger1.info("logger info test "+DateUtil.getDateTimeByFormat(date));
		logger1.debug("logger debug test "+DateUtil.getDateTimeByFormat(date));
		logger1.error("logger error test "+DateUtil.getDateTimeByFormat(date));
	}


}
